Ext.define('Usws.model.Channel', {
    extend: 'Ext.data.Model',
    fields: [
       {name: 'uid', type: 'string'},
       {name: 'isIdxChannel', type: 'string'},
       {name: 'name', type: 'string'},
	   {name: 'parentUid', type: 'string'},
	   {name: 'picture', type: 'string'},
	   {name: 'channelTypeDsid', type: 'int'},
	   {name: 'uiType', type: 'int'},
	   {name: 'isValid', type: 'string'},
	   {name: 'seqNum', type: 'int'},
	   {name: 'targetRole', type: 'int'},
	   {name: 'description', type: 'string'},
	   {name: 'createByUid', type: 'string'},
	   {name: 'createDate', type: 'date', dateFormat:'Y-m-d H:i:s'},
	   {name: 'lastUpdByUid', type: 'string'},
	   {name: 'lastUpdDate', type: 'date', dateFormat:'Y-m-d H:i:s'}
	   ,{name: 'relateCat', type: 'string'}
	,{name: 'videoQuality', type: 'int'}
	,{name: 'videoFrom', type: 'int'}
	,{name: 'mettingType', type: 'int'}
	,{name: 'mettingStatus', type: 'int'}
	,{name: 'platePicture', type: 'string'}
	,{name: 'channelPictureURL', type: 'string'}
    ],
    idProperty :"sid",           
    associations: [
                   {name:'parent', type: 'belongsTo', model: 'Usws.model.Channel', primaryKey: 'uid', foreignKey: 'parentUid'}
                  ] 
});